package com.lcy.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcy.reggie.common.Result;
import com.lcy.reggie.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author ChunBaBa_
* @description 针对表【category(菜品及套餐分类)】的数据库操作Service
* @createDate 2023-01-16 22:55:26
*/
public interface CategoryService extends IService<Category> {

    Result<String> addCategory(Category category);

    Result<Page> pageResult(HttpServletRequest request, Integer page, Integer pageSize);

    Result<String> delete(Long id);

    Result<String> update(Category category);

    Result<List<Category>> list(Category category);
}
